<?php

namespace App\Models\Pay;

use App\Models\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class PayReport extends Model
{
    protected $table = 'akbus_pay_report';

    protected $fillable = [
        'report_name',
    ];

    /**
     * 类型转化
     *
     * @var array
     */
    protected $casts = [
    ];

    /**
     * 行政人员信息
     */
    public function fields(): HasMany
    {
        return $this->hasMany(PayReportFields::class, 'report_id');
    }
}
